<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <script>
        /* while(true){
            一直执行
        } */
        var a=window.confirm("你是否想要下载");
        a=a+10;
        console.log(a);
        while(a){
            alert("请下载")
        }
    </script>
</body>
</html>